package com.whu.MenuHub.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;


//订单和食品一一对应的表格，没有评价，记录也存在
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("foodcomment")
public class FoodComment implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("foodID")
    private Integer foodID;

    @TableField("userID")
    private Integer userID;

    @TableField("foodNumber")
    private Integer foodNumber;

    @TableField("orderID")
    private Integer orderID;
    private String comment;

    @TableField("foodscore")
    private float foodscore;

    //为1则点赞 为-1则踩
    private int star;
}
